# -*- coding: utf-8 -*-
# @Time    : 2024/9/5 下午8:50
# @Author  : liujun
# @Email   : 2592730854@qq.com
# @File    : class_search_page.py
# @Software: PyCharm


from appium.webdriver.common.appiumby import AppiumBy as By


class ClassSearchPage:
    # 输入搜索内容
    search_input_locator = (By.ID, "com.xiachufang:id/search_edit_text")
    # 点击搜索
    search_btn_locator = (By.CLASS_NAME, "android.widget.TextView")


    def __init__(self,driver):
        self.driver = driver


    def input_content(self,content):  #输入内容
        self.driver.find_element(*self.search_input_locator).send_keys(content)

    def click_search_btn(self):  #点击搜索按钮
        self.driver.find_element(*self.search_btn_locator).click()
